home *** CD-ROM | disk | FTP | other *** search
/ 64'er 1994 July / 64er_Magazin_94-07_1994_Markt__Technik_de_Side_A.d64 / imp.source #2 < prev    next >
Text File  |  2022-10-26  |  19KB  |  1,119 lines

  1.  
  2.  
  3.  
  4. ;---------------------------------------
  5. ;
  6. ;       - I M P E R O I D   V 2 -
  7. ;
  8. ;         - by Hannes Sommer -
  9. ;
  10. ;      - (c) Markt & Technik '94 -
  11. ;
  12. ;---------------------------------------
  13.  
  14.  
  15.  
  16. v        = 53248
  17. be       = $47f8
  18. bord     = 703
  19.  
  20.          *= $8000
  21.  
  22.  
  23.          jmp title
  24.  
  25.  
  26. cols     .byte 0,0,0,0,0,0,0,0
  27.          .byte 0,0,0,0,0,0,0,0
  28.          .byte 0,9,8,10,15,7,1,1
  29.          .byte 1,1,13,3,14,4,6,0
  30.  
  31.          .byte 0,0,0,0,0,0,0,0
  32.          .byte 0,0,0,0,0,0,0,0
  33.  
  34.  
  35.  
  36. ;------------ F L I - Logo -------------
  37.  
  38.  
  39. fli
  40.  
  41.          lda #56
  42.          sta $d011
  43.  
  44.          inc fly1+1
  45. fly1     lda #0
  46.          lsr a
  47.          and #31
  48.          tay
  49.  
  50.          ldx #0
  51. fli0     lda cols,y
  52.          sta $50,x
  53.          iny
  54.          inx
  55.          cpx #15
  56.          bne fli0
  57.          lda #0
  58.          sta $5f
  59.  
  60.  
  61.          lda #49
  62. fli1     cmp $d012
  63.          bcs fli1
  64.  
  65.          ldx #3
  66. fli2     dex
  67.          bne fli2
  68.  
  69.          lda #63
  70.          ldx #8
  71.          sta $d011
  72.          stx $d018
  73.          lda $5f
  74.          sta $d020
  75.          sta $d021
  76.          lda #56
  77.          ldx #24
  78.          sta $d011
  79.          stx $d018
  80.          lda $5f
  81.          sta $d020
  82.          sta $d021
  83.          lda #57
  84.          ldx #40
  85.          sta $d011
  86.          stx $d018
  87.          lda $5f
  88.          sta $d020
  89.          sta $d021
  90.          lda #58
  91.          ldx #56
  92.          sta $d011
  93.          stx $d018
  94.          lda $5f
  95.          sta $d020
  96.          sta $d021
  97.          lda #59
  98.          ldx #72
  99.          sta $d011
  100.          stx $d018
  101.          lda $50
  102.          sta $d020
  103.          sta $d021
  104.          lda #60
  105.          ldx #88
  106.          sta $d011
  107.          stx $d018
  108.          lda $51
  109.          sta $d020
  110.          sta $d021
  111.          lda #61
  112.          ldx #104
  113.          sta $d011
  114.          stx $d018
  115.          lda $52
  116.          sta $d020
  117.          sta $d021
  118.          lda #62
  119.          ldx #120
  120.          sta $d011
  121.          stx $d018
  122.          lda $50
  123.          sta $d020
  124.          sta $d021
  125.  
  126.          lda #63    ;Line #2
  127.          ldx #8
  128.          sta $d011
  129.          stx $d018
  130.          lda $51
  131.          sta $d020
  132.          sta $d021
  133.          lda #56
  134.          ldx #24
  135.          sta $d011
  136.          stx $d018
  137.          lda $52
  138.          sta $d020
  139.          sta $d021
  140.          lda #57
  141.          ldx #40
  142.          sta $d011
  143.          stx $d018
  144.          lda $53
  145.          sta $d020
  146.          sta $d021
  147.          lda #58
  148.          ldx #56
  149.          sta $d011
  150.          stx $d018
  151.          lda $50
  152.          sta $d020
  153.          sta $d021
  154.          lda #59
  155.          ldx #72
  156.          sta $d011
  157.          stx $d018
  158.          lda $51
  159.          sta $d020
  160.          sta $d021
  161.          lda #60
  162.          ldx #88
  163.          sta $d011
  164.          stx $d018
  165.          lda $52
  166.          sta $d020
  167.          sta $d021
  168.          lda #61
  169.          ldx #104
  170.          sta $d011
  171.          stx $d018
  172.          lda $53
  173.          sta $d020
  174.          sta $d021
  175.          lda #62
  176.          ldx #120
  177.          sta $d011
  178.          stx $d018
  179.          lda $54
  180.          sta $d020
  181.          sta $d021
  182.  
  183.          lda #63   ;Line #3
  184.          ldx #8
  185.          sta $d011
  186.          stx $d018
  187.          lda $55
  188.          sta $d020
  189.          sta $d021
  190.          lda #56
  191.          ldx #24
  192.          sta $d011
  193.          stx $d018
  194.          lda $50
  195.          sta $d020
  196.          sta $d021
  197.          lda #57
  198.          ldx #40
  199.          sta $d011
  200.          stx $d018
  201.          lda $51
  202.          sta $d020
  203.          sta $d021
  204.          lda #58
  205.          ldx #56
  206.          sta $d011
  207.          stx $d018
  208.          lda $52
  209.          sta $d020
  210.          sta $d021
  211.          lda #59
  212.          ldx #72
  213.          sta $d011
  214.          stx $d018
  215.          lda $53
  216.          sta $d020
  217.          sta $d021
  218.          lda #60
  219.          ldx #88
  220.          sta $d011
  221.          stx $d018
  222.          lda $54
  223.          sta $d020
  224.          sta $d021
  225.          lda #61
  226.          ldx #104
  227.          sta $d011
  228.          stx $d018
  229.          lda $55
  230.          sta $d020
  231.          sta $d021
  232.          lda #62
  233.          ldx #120
  234.          sta $d011
  235.          stx $d018
  236.          lda $56
  237.          sta $d020
  238.          sta $d021
  239.  
  240.          lda #63   ;Line #4
  241.          ldx #8
  242.          sta $d011
  243.          stx $d018
  244.          lda $57
  245.          sta $d020
  246.          sta $d021
  247.          lda #56
  248.          ldx #24
  249.          sta $d011
  250.          stx $d018
  251.          lda $50
  252.          sta $d020
  253.          sta $d021
  254.          lda #57
  255.          ldx #40
  256.          sta $d011
  257.          stx $d018
  258.          lda $51
  259.          sta $d020
  260.          sta $d021
  261.          lda #58
  262.          ldx #56
  263.          sta $d011
  264.          stx $d018
  265.          lda $52
  266.          sta $d020
  267.          sta $d021
  268.          lda #59
  269.          ldx #72
  270.          sta $d011
  271.          stx $d018
  272.          lda $53
  273.          sta $d020
  274.          sta $d021
  275.          lda #60
  276.          ldx #88
  277.          sta $d011
  278.          stx $d018
  279.          lda $54
  280.          sta $d020
  281.          sta $d021
  282.          lda #61
  283.          ldx #104
  284.          sta $d011
  285.          stx $d018
  286.          lda $55
  287.          sta $d020
  288.          sta $d021
  289.          lda #62
  290.          ldx #120
  291.          sta $d011
  292.          stx $d018
  293.          lda $56
  294.          sta $d020
  295.          sta $d021
  296.  
  297.          lda #63   ;Line #5
  298.          ldx #8
  299.          sta $d011
  300.          stx $d018
  301.          lda $57
  302.          sta $d020
  303.          sta $d021
  304.          lda #56
  305.          ldx #24
  306.          sta $d011
  307.          stx $d018
  308.          lda $58
  309.          sta $d020
  310.          sta $d021
  311.          lda #57
  312.          ldx #40
  313.          sta $d011
  314.          stx $d018
  315.          lda $59
  316.          sta $d020
  317.          sta $d021
  318.          lda #58
  319.          ldx #56
  320.          sta $d011
  321.          stx $d018
  322.          lda $52
  323.          sta $d020
  324.          sta $d021
  325.          lda #59
  326.          ldx #72
  327.          sta $d011
  328.          stx $d018
  329.          lda $53
  330.          sta $d020
  331.          sta $d021
  332.          lda #60
  333.          ldx #88
  334.          sta $d011
  335.          stx $d018
  336.          lda $54
  337.          sta $d020
  338.          sta $d021
  339.          lda #61
  340.          ldx #104
  341.          sta $d011
  342.          stx $d018
  343.          lda $55
  344.          sta $d020
  345.          sta $d021
  346.          lda #62
  347.          ldx #120
  348.          sta $d011
  349.          stx $d018
  350.          lda $56
  351.          sta $d020
  352.          sta $d021
  353.  
  354.          lda #63   ;Line #6
  355.          ldx #8
  356.          sta $d011
  357.          stx $d018
  358.          lda $57
  359.          sta $d020
  360.          sta $d021
  361.          lda #56
  362.          ldx #24
  363.          sta $d011
  364.          stx $d018
  365.          lda $58
  366.          sta $d020
  367.          sta $d021
  368.          lda #57
  369.          ldx #40
  370.          sta $d011
  371.          stx $d018
  372.          lda $59
  373.          sta $d020
  374.          sta $d021
  375.          lda #58
  376.          ldx #56
  377.          sta $d011
  378.          stx $d018
  379.          lda $54
  380.          sta $d020
  381.          sta $d021
  382.          lda #59
  383.          ldx #72
  384.          sta $d011
  385.          stx $d018
  386.          lda $55
  387.          sta $d020
  388.          sta $d021
  389.          lda #60
  390.          ldx #88
  391.          sta $d011
  392.          stx $d018
  393.          lda $56
  394.          sta $d020
  395.          sta $d021
  396.          lda #61
  397.          ldx #104
  398.          sta $d011
  399.          stx $d018
  400.          lda $57
  401.          sta $d020
  402.          sta $d021
  403.          lda #62
  404.          ldx #120
  405.          sta $d011
  406.          stx $d018
  407.          lda $58
  408.          sta $d020
  409.          sta $d021
  410.  
  411.          lda #63   ;Line #7
  412.          ldx #8
  413.          sta $d011
  414.          stx $d018
  415.          lda $59
  416.          sta $d020
  417.          sta $d021
  418.          lda #56
  419.          ldx #24
  420.          sta $d011
  421.          stx $d018
  422.          lda $56
  423.          sta $d020
  424.          sta $d021
  425.          lda #57
  426.          ldx #40
  427.          sta $d011
  428.          stx $d018
  429.          lda $57
  430.          sta $d020
  431.          sta $d021
  432.          lda #58
  433.          ldx #56
  434.          sta $d011
  435.          stx $d018
  436.          lda $58
  437.          sta $d020
  438.          sta $d021
  439.          lda #59
  440.          ldx #72
  441.          sta $d011
  442.          stx $d018
  443.          lda $59
  444.          sta $d020
  445.          sta $d021
  446.          lda #60
  447.          ldx #88
  448.          sta $d011
  449.          stx $d018
  450.          lda $57
  451.          sta $d020
  452.          sta $d021
  453.          lda #61
  454.          ldx #104
  455.          sta $d011
  456.          stx $d018
  457.          lda $58
  458.          sta $d020
  459.          sta $d021
  460.          lda #62
  461.          ldx #120
  462.          sta $d011
  463.          stx $d018
  464.          lda $59
  465.          sta $d020
  466.          sta $d021
  467.          lda #63
  468.          ldx #12
  469.          sta $d011
  470.          stx $d018
  471.          lda #0
  472.          sta $d020
  473.          sta $d021
  474.          lda #88
  475.          sta $d011
  476.  
  477.          rts
  478.  
  479.  
  480.  
  481.  
  482.  
  483. ;--------------- G A M E ---------------
  484.  
  485.  
  486. game
  487.          lda #64
  488.          sta $d011
  489.          sta $d020
  490.          sta $d021
  491.  
  492.          ldx #0
  493. in1      lda #255
  494.          sta $4000,x
  495.          lda #0
  496.          sta $d800,x
  497.          sta $d900,x
  498.          sta $da00,x
  499.          sta $db00,x
  500.          dex
  501.          bne in1
  502.  
  503.          ldx #6
  504.          lda #255
  505. in2      sta backxh,x
  506.          sta packxh,x
  507.          dex
  508.          bpl in2
  509.  
  510.          lda #$44    ;Aufbau des
  511.          sta in6+2   ;Sterne-Himmels
  512.          ldx #0
  513.          stx in6+1
  514.          ldy #0
  515. in5      tya
  516.          clc
  517.          adc starl,x
  518.          and #31
  519. in6      sta $4400,y
  520.          iny
  521.          cpy #40
  522.          bne in5
  523.          lda in6+1
  524.          clc
  525.          adc #40
  526.          sta in6+1
  527.          bcc in7
  528.          inc in6+2
  529. in7      inx
  530.          cpx #24
  531.          bne in5-2
  532.  
  533.          ldx #39
  534. in8      lda #32
  535.          sta $4400+960,x
  536.          lda #255
  537.          sta $4100,x
  538.          dex
  539.          bpl in8
  540.  
  541.          lda #0
  542.          sta end+1
  543.          sta backpoint
  544.          sta packpoint
  545.          sta backspr
  546.          sta packspr
  547.  
  548.          lda #1
  549.          sta t20+1
  550.          lda #15
  551.          sta t30+1
  552.  
  553.          lda #14   ;Player-Init
  554.          sta c
  555.          lda #48
  556.          sta b
  557.          lda #80
  558.          sta x
  559.          lda #140
  560.          sta y
  561.          lda #0
  562.          sta xh
  563.  
  564.          sei       ;Irq+Grafik-Modi
  565.          lda #<irq
  566.          sta $fffe
  567.          lda #>irq
  568.          sta $ffff
  569.          lda #129
  570.          sta $d01a
  571.          lda #250
  572.          sta $d012
  573.          lda #27
  574.          sta $d011
  575.          lda #198
  576.          sta $dd00
  577.          lda #16
  578.          sta $d018
  579.          lda #200
  580.          sta $d016
  581.  
  582.          cli
  583.  
  584. s1
  585.  
  586. end      lda #0      ;Ende ?
  587.          beq noend
  588.          lda #64
  589.          sta $d011
  590.          sta $d021
  591.          sei
  592.          jmp title
  593. noend
  594.          jmp s1
  595.  
  596.  
  597. starl    .byte 0,5,20,13,28
  598.          .byte 14,3,9,23,18
  599.          .byte 4,10,21,8,27
  600.          .byte 11,2,26,15,6
  601.          .byte 24,1,16,29,7
  602.  
  603.  
  604. nmi      inc end+1 ;*** NMI ***
  605.          rti
  606.  
  607.  
  608. irq      pha       ;*** IRQ ***
  609.          txa
  610.          pha
  611.          tya
  612.          pha
  613.          lda $d019
  614.          sta $d019
  615.          bmi t1
  616.          lda $dc0d
  617.          cli
  618. irqend   pla
  619.          tay
  620.          pla
  621.          tax
  622.          pla
  623.          rti
  624.  
  625.  
  626. t1
  627.          inc bord
  628.  
  629.          lda #255
  630.          sta v+21
  631.          sta v+28
  632.          lda #11
  633.          sta v+37
  634.          lda #1
  635.          sta v+38
  636.  
  637.          ldx #15
  638. t5       lda starp,x  ;Star-moving!
  639.          and #248
  640.          sta t6+1
  641.          txa
  642.          and #7
  643.          tay
  644.          lda #255
  645. t6       sta $4000,y
  646.          lda starp,x
  647.          sec
  648.          sbc stars,x
  649.          sta starp,x
  650.          and #248
  651.          sta t7+1
  652.          lda starp,x
  653.          and #7
  654.          sta tt7+1
  655. tt7      lda und
  656. t7       sta $4000,y
  657.          dex
  658.          bpl t5
  659.  
  660.          inc t8+1     ;Star-Flashing!
  661. t8       lda #0
  662.          lsr a
  663.          and #15
  664.          tax
  665.          lda stflash,x
  666.          sta $d021
  667.  
  668.  
  669.  
  670.  
  671.          lda $dc00  ;Joystick-Control!
  672.          sta joyst
  673.          and #1
  674.          bne t11
  675.          lda y
  676.          cmp #52
  677.          bcc t12
  678.          sbc #2
  679.          sta y
  680. t11      lda joyst
  681.          and #2
  682.          bne t12
  683.          lda y
  684.          cmp #224
  685.          bcs t12
  686.          adc #2
  687.          sta y
  688. t12      lda joyst
  689.          and #4
  690.          bne t13
  691.          lda ix
  692.          cmp #13
  693.          bcc t14
  694.          lda x
  695.          sbc #2
  696.          sta x
  697.          bcs t14
  698.          dec xh
  699. t13      lda joyst
  700.          and #8
  701.          bne t14
  702.          lda ix
  703.          cmp #160
  704.          bcs t14
  705.          lda x
  706.          adc #2
  707.          sta x
  708.          bcc t14
  709.          inc xh
  710. t14
  711.  
  712.  
  713.          lda x    ;Player-Sprite!
  714.          sta v
  715.          lda y
  716.          sta v+1
  717.          lda xh
  718.          sta v+16
  719.          lda b
  720.          sta be
  721.          lda c
  722.          sta v+39
  723.  
  724.  
  725.          dec t20+1
  726. t20      lda #1  ;* New Back-Sprites *
  727.          bne t22-2
  728.          ldx backpoint
  729.          ldy backspr
  730.          lda backtime,x
  731.          bne t21
  732.          ldx #0
  733.          stx backpoint
  734.          lda backtime,x
  735. t21      sta t20+1
  736.          lda backbdat,x
  737.          sta backb,y
  738.          lda #84
  739.          sta backx,y
  740.          lda #1
  741.          sta backxh,y
  742.          inc backpoint
  743.          inc backspr
  744.          lda backspr
  745.          cmp #7
  746.          bne t22-2
  747.          lda #0
  748.          sta backspr
  749.  
  750.          ldx #6
  751. t22      lda backx,x  ;Back X-moving!
  752.          sec
  753.          sbc #4
  754.          sta backx,x
  755.          bcs t23
  756.          dec backxh,x
  757. t23      lda backxh,x ;Back to Sprites!
  758.          bmi t25
  759.          beq t24
  760.          lda v+16
  761.          ora oder+1,x
  762.          sta v+16
  763. t24      ldy mal2,x
  764.          lda backx,x
  765.          sta v+2,y
  766.          lda #50
  767.          sta v+3,y
  768.          lda backb,x
  769.          sta be+1,x
  770.          lda #15
  771.          sta v+40,x
  772. t25      dex
  773.          bpl t22
  774.  
  775.  
  776.          dec t30+1
  777. t30      lda #1  ;* New Pack-Sprites *
  778.          bne t32-2
  779.          ldx packpoint
  780.          ldy packspr
  781.          lda packtime,x
  782.          bne t31
  783.          ldx #0
  784.          stx packpoint
  785.          lda packtime,x
  786. t31      sta t30+1
  787.          lda packbdat,x
  788.          sta packb,y
  789.          lda #84
  790.          sta packx,y
  791.          lda #1
  792.          sta packxh,y
  793.          inc packpoint
  794.          inc packspr
  795.          lda packspr
  796.          cmp #7
  797.          bne t32-2
  798.          lda #0
  799.          sta packspr
  800.  
  801.          ldx #6
  802. t32      lda packx,x  ;Back X-moving!
  803.          sec
  804.          sbc #4
  805.          sta packx,x
  806.          bcs t33
  807.          dec packxh,x
  808. t33      dex
  809.          bpl t32
  810.  
  811.  
  812.  
  813. t40      lda #0    ;* 1/3-Action *
  814.          bne t50
  815.  
  816.          inc b   ;Ship circling!
  817.          lda b
  818.          cmp #56
  819.          bne t41
  820.          lda #48
  821.          sta b
  822. t41
  823.  
  824.          jmp t70
  825.  
  826.  
  827. t50      cmp #1    ;* 2/3-Action *
  828.          bne t60
  829.  
  830.          jmp t70
  831.  
  832.  
  833. t60      lda #255  ;* 3/3-Action *
  834.          sta t40+1
  835.  
  836.  
  837.  
  838. t70      inc t40+1
  839.  
  840.  
  841.  
  842.          ldx #7
  843. t80      lda x,x  ;* x to ix *
  844.          lsr a
  845.          ldy xh,x
  846.          beq t81
  847.          ora #128
  848. t81      sta ix,x
  849.          dex
  850.          bpl t80
  851.  
  852.  
  853.  
  854. k1       lda $d011
  855.          bmi k1
  856.          lda #71
  857. k2       cmp $d012
  858.          bcs k2
  859.  
  860.          lda v+16
  861.          and #1
  862.          sta v+16
  863.          ldx #6
  864. k3       lda packxh,x ;Pack-Spr.oben!
  865.          bmi k5
  866.          beq k4
  867.          lda v+16
  868.          ora oder+1,x
  869.          sta v+16
  870. k4       ldy mal2,x
  871.          lda packx,x
  872.          sta v+2,y
  873.          lda #80
  874.          sta v+3,y
  875.          lda packb,x
  876.          sta be+1,x
  877.          lda #15
  878.          sta v+40,x
  879. k5       dex
  880.          bpl k3
  881.  
  882.  
  883.          lda #190
  884. k50      cmp $d012  ;Pack-Spr.unten!
  885.          bcs k50
  886.          lda v+16
  887.          and #254
  888.          sta v+16
  889.  
  890.          lda v+16
  891.          and #1
  892.          sta v+16
  893.  
  894.          ldx #6
  895. k51      ldy mal2,x
  896.          lda packxh,x
  897.          bmi kk52
  898.          beq k52
  899.          lda v+16
  900.          ora oder+1,x
  901.          sta v+16
  902. k52      lda #198
  903.          sta v+3,y
  904.          lda packx,x
  905.          sta v+2,y
  906.          lda packb,x
  907.          ora #8
  908.          sta be+1,x
  909.          lda #15
  910.          sta v+40,x
  911. kk52     dex
  912.          bpl k51
  913.  
  914.          lda #220
  915. k53      cmp $d012  ;Back-Spr.unten!
  916.          bcs k53
  917.  
  918.          lda v+16
  919.          and #1
  920.          sta v+16
  921.  
  922.          ldx #6
  923. k54      ldy mal2,x
  924.          lda backxh,x
  925.          bmi kk55
  926.          beq k55
  927.          lda v+16
  928.          ora oder+1,x
  929.          sta v+16
  930. k55      lda #228
  931.          sta v+3,y
  932.          lda backx,x
  933.          sta v+2,y
  934.          lda backb,x
  935.          ora #8
  936.          sta be+1,x
  937.          lda #15
  938.          sta v+40,x
  939. kk55     dex
  940.          bpl k54
  941.  
  942.  
  943.  
  944.  
  945.          lda #0
  946.          sta bord
  947.  
  948.          jmp irqend
  949.  
  950.  
  951. starp    .byte 220,10,140,200
  952.          .byte 160,180,100,50
  953.          .byte 40,90,80,240
  954.          .byte 150,110,134,215
  955. stars    .byte 1,2,1,3,1,4,1,3
  956.          .byte 2,1,4,1,1,1,3,1
  957.  
  958.  
  959. stflash  .byte 11,12,12,15,3,13,7,1
  960.          .byte 1,1,7,13,3,15,12,12
  961.  
  962.  
  963. ;-------------- T I T L E --------------
  964.  
  965.  
  966. title
  967.          sei
  968.          lda #0
  969.          sta $d020
  970.          sta $d021
  971.          sta $d01a
  972.          sta $d011
  973.          sta v+27
  974.          sta v+23
  975.          sta v+29
  976.          sta fly1+1
  977.          ldx #16
  978. ti0      sta $d000,x
  979.          sta $d400,x
  980.          sta $d408,x
  981.          dex
  982.          bpl ti0
  983.  
  984.          ldx #0
  985.          lda #$35
  986.          sta 1
  987. ti1      lda $bc00,x
  988.          sta $d800,x
  989.          lda $bc18,x
  990.          sta $d818,x
  991.          lda #0
  992.          sta $d918,x
  993.          lda #9
  994.          sta $d940,x
  995.          sta $da40,x
  996.          sta $db00,x
  997.          dex
  998.          bne ti1
  999.  
  1000.  
  1001.  
  1002.  
  1003.          lda #<nmi
  1004.          sta $fffa
  1005.          sta $fffe
  1006.          lda #>nmi
  1007.          sta $fffb
  1008.          sta $ffff
  1009.  
  1010.  
  1011.          lda #196
  1012.          sta 56576
  1013.          lda #27
  1014.          sta $d011
  1015.          lda #224
  1016.          sta 56322
  1017.  
  1018.  
  1019.  
  1020. ti20     lda $d011
  1021.          bmi ti20
  1022.          sei
  1023.          lda #120
  1024.          sta $d011
  1025.          lda #216
  1026.          sta 53270
  1027.          lda #24
  1028.          sta 53272
  1029.  
  1030.  
  1031.          jsr fli   ;** FLI-Logo! **
  1032.  
  1033.  
  1034.          lda #24   ;Text-Mode
  1035.          sta $d011
  1036.  
  1037.          ldx #0    ;Colour-changing...
  1038. ti25     lda tiwait,x
  1039.          cmp $d012
  1040.          bcs ti25
  1041.          lda ticol1,x
  1042.          sta $d022
  1043.          lda ticol2,x
  1044.          sta $d023
  1045.          inx
  1046.          cpx #4
  1047.          bne ti25
  1048.  
  1049. ti26     lda $dc00 ;Joy-Button ?
  1050.          and #16
  1051.          bne ti28
  1052.          jmp game
  1053.  
  1054. ti28
  1055.  
  1056.  
  1057.  
  1058. ti99     lda $d011
  1059.          bpl ti99
  1060.          jmp ti20
  1061.  
  1062.  
  1063.  
  1064. joyst    .byte 0
  1065.  
  1066. x        .byte 0,0,0,0,0,0,0,0
  1067. xh       .byte 0,0,0,0,0,0,0,0
  1068. y        .byte 0,0,0,0,0,0,0,0
  1069. b        .byte 0,0,0,0,0,0,0,0
  1070. c        .byte 0,0,0,0,0,0,0,0
  1071. ix       .byte 0,0,0,0,0,0,0,0
  1072.  
  1073. backx    .byte 0,0,0,0,0,0,0
  1074. backxh   .byte 0,0,0,0,0,0,0
  1075. backb    .byte 0,0,0,0,0,0,0
  1076.  
  1077. backpoint .byte 0
  1078. backspr  .byte 0
  1079. backtime .byte 6,20,6,6,15
  1080.          .byte 6,40
  1081.          .byte 6,6,6,15
  1082.          .byte 6,6,40
  1083.          .byte 30,20,6,6,6,6,40
  1084.          .byte 0
  1085. backbdat .byte 128,130,128,129,130
  1086.          .byte 128,130
  1087.          .byte 128,129,129,130
  1088.          .byte 128,129,130
  1089.          .byte 131,132
  1090.          .byte 128,129,129,129,130
  1091.  
  1092. packx    .byte 0,0,0,0,0,0,0
  1093. packxh   .byte 0,0,0,0,0,0,0
  1094. packb    .byte 0,0,0,0,0,0,0
  1095.  
  1096. packpoint .byte 0
  1097. packspr  .byte 0
  1098. packtime .byte 32,22,12,22
  1099.          .byte 6,32,38
  1100.          .byte 0
  1101.  
  1102. packbdat .byte 131,131,132,131
  1103.          .byte 128,130,131
  1104.  
  1105.  
  1106.  
  1107. oder     .byte 1,2,4,8,16,32,64,128
  1108. mal2     .byte 0,2,4,6,8,10,12,14
  1109.  
  1110. tiwait   .byte 100,134,158,188
  1111. ticol1   .byte 9,6,9,4
  1112. ticol2   .byte 5,14,10,12
  1113.  
  1114.          *= $9f00
  1115.  
  1116. und      .byte 127,191,223,239
  1117.          .byte 247,251,253,254
  1118.  
  1119.